#ifndef _USER_USART2_H_
#define _USER_USART2_H_


#include "gd32f10x_usart.h"


#define USER_USART2									USART2
#define USER_USART2_RCU							RCU_USART2
#define USER_USART2_NVIC_IRQ				USART2_IRQn
#define USER_USART2_IRQHandler			USART2_IRQHandler



#define USER_USART2_TX_IO_RCU				RCU_GPIOB
#define USER_USART2_TX_GPIO					GPIOB
#define USER_USART2_TX_IO_MODE			GPIO_MODE_AF_PP
#define USER_USART2_TX_IO_SPEED			GPIO_OSPEED_50MHZ
#define USER_USART2_TX_IO_PIN				GPIO_PIN_10


#define USER_USART2_RX_IO_RCU				RCU_GPIOB
#define USER_USART2_RX_GPIO					GPIOB
#define USER_USART2_RX_IO_MODE			GPIO_MODE_IN_FLOATING
#define USER_USART2_RX_IO_SPEED			GPIO_OSPEED_50MHZ
#define USER_USART2_RX_IO_PIN				GPIO_PIN_11



void USER_USART2_init();







#endif
